package vaani.testvaani;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Vector;
import vaani.internal.WordTagPair;
import vaani.shabd.Tagger;

/**
 *
 * @author sourcemorph
 */

public class TaggerTrial {
    public static void main(String [] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Enter a string-");
        try {
            Vector<WordTagPair> temp = Tagger.tag(reader.readLine());
            for(WordTagPair w : temp) {
                System.out.println(w.getWord() + " " + w.getTag());
            }
        } catch(Exception ex) {
            ex.printStackTrace();
        }
    }
}
